package com.lsj.spring.dao.impl;

import com.lsj.spring.dao.IUserDao;
import com.lsj.spring.model.User;
import lombok.Setter;
import org.springframework.stereotype.Repository;

/**
 * @author Lsj
 * @version 1.0
 * @date 2021/6/24 20:26
 */
@Repository
public class UserDao2Impl implements IUserDao {
    @Setter
    private int databaseId;

    /**
     * 根据id查询
     * @param id id
     * @return 用户
     */
    @Override
    public User selectById(int id) {
        System.out.println("选择了数据库"+databaseId);
        System.out.println("金厂长版本皮卡丘");
        User user = new User();
        user.setUsername("老金在线发牌");
        return user;
    }
}
